JavaEventEmitter

interface JavaEventEmitter<T : Event>

Provides EventEmitter functionality that is more convenient for Java usage.

Functions

next
Link copied to clipboard
abstract fun <E : T> next(eventClass: Class<E>, eventListener: EventListener<E>)
Subscribes the eventListener to be executed when the next event of type E is emitted.
off
Link copied to clipboard
abstract fun <E : T> off(eventListener: EventListener<E>)
Unsubscribes the eventListener for all events.
abstract fun <E : T> off(eventClass: Class<E>, eventListener: EventListener<E>)
Unsubscribes the eventListener for the specified event.
on
Link copied to clipboard
abstract fun <E : T> on(eventClass: Class<E>, eventListener: EventListener<E>)
Subscribes the eventListener to be executed when an event of type E is emitted.

Inheritors

EventEmitter
Link copied to clipboard